package com.fdd.op.sdk.internal.token;

import com.fdd.op.sdk.domain.OAuth2AccessToken;

import java.util.LinkedHashMap;

/**
 * $d$
 *
 * @version 2.0.0
 * @author: Fadada
 * @date: 2022/9/8
 */
public interface FddTokenStore {
    /**
     * 存储令牌对象
     *
     * @throws
     * @Author: Fadada
     * @Date: 2022/9/9
     * @Param: [token]
     * @Return: void
     */
    void storeAccessToken(OAuth2AccessToken token, LinkedHashMap<String, String> map);

    /**
     * 根据appId、appKey、serverUrl获取令牌对象
     *
     * @throws
     * @Author: Fadada
     * @Date: 2022/9/9
     * @Param: [map]
     * @Return: com.fdd.op.sdk.domain.OAuth2AccessToken
     */
    OAuth2AccessToken getAccessToken(LinkedHashMap<String, String> map);
}
